home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Libraries / WASTE 1.3a5 / Demo / Source / SmartScroll Stuff / SmartScroll.h < prev   
Encoding:
C/C++ Source or Header  |  1997-05-11  |  1007 b   |  38 lines  |  [TEXT/CWIE]

  1. /*
  2.  *    File:        SmartScroll.h
  3.  *
  4.  *    Contains:    Smart Scroll Application Programming Interface
  5.  *
  6.  *    Copyright:    © 1996, 1997 by Marc Moini, portions by Marc Menschenfreund,
  7.  *                Alessandro Levi Montalcini and Mark Shirley (Thanks!),
  8.  *                misc changes for "WASTE Demo" by Marco Piovanelli.
  9.  *                All rights reserved.
  10.  */
  11.  
  12. #ifndef __SMARTSCROLL__
  13. #define __SMARTSCROLL__
  14.  
  15. //    MacOS #includes
  16.  
  17. #ifndef __CONDITIONALMACROS__
  18. #include <ConditionalMacros.h>
  19. #endif
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24.  
  25. #ifndef __CONTROLS__
  26. #include <Controls.h>
  27. #endif
  28.  
  29. //    public prototypes
  30.  
  31. extern pascal void InitSmartScrollAwareApplication ( void ) ;
  32. extern pascal void CloseSmartScrollAwareApplication ( void ) ;
  33. extern pascal void SetSmartScrollInfo ( ControlRef inScrollBar, SInt32 inAmountVisible, SInt32 inAmountTotal ) ;
  34. extern pascal void SetSmartScrollProportion ( ControlRef inScrollBar, Fract inProportion ) ;
  35. extern pascal Fract GetSmartScrollProportion ( ControlRef inScrollBar ) ;
  36.  
  37. #endif    /* __SMARTSCROLL */
  38.